Skip to content

check if OTEL_EXPORTER_* variables are both set AND not empty#426

Closed
milohansen wants to merge 4 commits into
grafana:mainfrom
milohansen:main
Closed

check if OTEL_EXPORTER_* variables are both set AND not empty#426
milohansen wants to merge 4 commits into
grafana:mainfrom
milohansen:main

Conversation

@milohansen

Copy link
Copy Markdown
Contributor

Updates docker/run-otelcol.sh to check if the OTEL_EXPORTER_* environment variables are both present and not empty.

Fixes #421

@CLAassistant

CLAassistant commented Apr 21, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@zeitlinger

Copy link
Copy Markdown
Member

thanks for the contribution!

@zeitlinger zeitlinger enabled auto-merge (squash) April 22, 2025 08:05
@zeitlinger

Copy link
Copy Markdown
Member

auto-merge was automatically disabled April 22, 2025 17:19

Head branch was pushed to by a user without write access

@milohansen

Copy link
Copy Markdown
Contributor Author

Code is updated and passes the lint check now.

@zeitlinger zeitlinger enabled auto-merge (squash) April 23, 2025 08:43
@zeitlinger

Copy link
Copy Markdown
Member

closed in favor of #434

@zeitlinger zeitlinger closed this Apr 23, 2025
auto-merge was automatically disabled April 23, 2025 12:25

Pull request was closed

@zeitlinger

Copy link
Copy Markdown
Member

turned out that you also have to check if the variable exists, because of

set -euo pipefail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable http export when OTEL_EXPORTER_OTLP_ENDPOINT is invalid

3 participants